package org.lboot.flow.constant;

import cn.hutool.core.lang.Validator;

/**
 * 流程分配类型
 */
public class FlowAssignConst {
    public static final String ROLE = "ROLE";
    public static final String DEPT = "DEPT";
    public static final String USER = "USER";
    public static final String SELF = "SELF";

    public static Boolean isAssignType(String assignType){
        if (Validator.isEmpty(assignType)) return false;
        if (assignType.equals(ROLE)) return true;
        if (assignType.equals(DEPT)) return true;
        if (assignType.equals(USER)) return true;
        if (assignType.equals(SELF)) return true;
        return false;
    }
}
